
#ifndef DATA_SERVICE_GLOBAL_H
#define DATA_SERVICE_GLOBAL_H

#include <string.h>
#include <unistd.h>
#include <stdio.h>

#include "easylogger/easylogger/inc/elog.h"
#include "easylogger/easylogger/inc/elog_cfg.h"
#include "easylogger/easylogger/plugins/file/elog_file.h"
#include "easylogger/easylogger/plugins/file/elog_file_cfg.h"

#include "threadpool/include/thread-pool.h"

#include "tiny_ini_file.h"
#include "ini_reader.h"

// 测试模块
void test_log(void);
void test_log_file(void);
void test_ini(void);
// 测试模块

// 初始化模块
void init_pool(void);
void init_log();
void init_config();

// 功能模块
int ini_read(const char* file_name, const char* section, const char* key, char** value);
int udp_service();
// 功能模块


extern char g_log_file[100];
extern ThreadPool *g_pool;
extern int g_udp_port;

#endif //DATA_SERVICE_GLOBAL_H
